#ifndef WIDGET_H
#define WIDGET_H
#include <QWidget>
#include <QtGui>
#include "musictable.h"
#include "dock.h"
#include "controlbar.h"
#include <map>
#include "database.h"

class Widget : public QWidget
{
    Q_OBJECT

    friend class MainWindow;

    public:
        explicit Widget(QWidget *parent = 0);

    private slots:
        void nextSong();
        void previousSong();
        void performSearch(QString tags);
        void playSong(QUrl url);
        void loadPlaylist(QString);
        void addNewPlaylist(QString);
        void addSongToPlaylist();
        void requestStreamUrl(VideoInfo);
        void editSong();

    private:
        Dock* dock;
        MusicTable* musicTable;
        ControlBar* controlBar;
        NetworkCommunicator* networkCommunicator;

        Playlist showingPlaylist;
        Playlist playingPlaylist;
        VideoInfo currentVideo;


};

#endif // WIDGET_H
